package com.wyg.blog.service.user;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wyg.blog.model.user.User;

/**
 * @description:
 * @author: WYG
 * @time: 2020/6/21 18:45
 */
public interface UserService {

    User selectUserByUsername(String username);

    IPage<User> selectUsers(Page<?> page);

    Integer selectUserNum(String username);

    Integer insertUser(User user);

    boolean checkLogin(String username, String password) throws Exception;

    boolean renewPwd(String username,String password);

    boolean activate(String username);

    boolean removeUser(String username);

}
